import allure

from pytest00.base import sum1
from pytest00.tpshop.page.ptest import A
from pytest00.tpshop.util import ass


@allure.epic("数学项目")
@allure.feature("tp前台项目test3.py模块哦")
class Test01:
    def setup_class(self):
        print("类方法===setup_class")
    def setup_method(self):
        print("方法方法===setup_module")
    @allure.description("这是一个详细描述")
    @allure.story("用例描述哦：数字项目，验证A.a")
    @allure.testcase("http://localhost/index.php/Admin/Index/index")
    def test01(self):
        print("11111111111111111111111111111111111111111111111")
        re = A().a(200)
        ass(re, 200)
        assert re == 200
    @allure.description("这是一个详细描述")
    @allure.story("用例描述哦：数字项目，验证A.b")
    @allure.testcase("http://localhost/index.php/Admin/Index/index")
    @allure.severity(allure.severity_level.NORMAL)
    def test02(self):
        print("222222222222222222222222222222222222222222222222222")
        re=A().b(200)
        ass(re,200)
        assert re == 200

    def teardown_class(self):
        print("类方法===teardown_class")
        sum1()

